-
Notifications
You must be signed in to change notification settings - Fork 0
/
Year 66 - Decimal Counter
263 lines (262 loc) · 3.39 KB
/
Year 66 - Decimal Counter
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
-- 7 Billion Humans (2214M) --
-- 66: Decimal Counter by @commonnickname --
mem2 = set s
if mem2 != datacube:
step s
tell everyone hi
mem1 = set myitem
step s
pickup nw
step n
write 3
step s
step nw
drop
step nw
step e
pickup s
write 6
step s
drop
step e
step sw
pickup n
write 9
step n
drop
step ne
step s
mem1 = set myitem
step s
step w
step e
step w
step w
step e
pickup n
write 5
step n
drop
step ne
step s
pickup w
write 8
step w
drop
step w
listenfor ready
mem1 = set c
pickup c
write 2
step e
mem1 = set myitem
drop
else:
step s
pickup c
step s
drop
if mem2 == 0:
listenfor ready
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
pickup e
write 1
drop
else:
pickup w
if mem2 == 1:
write 2
drop
step e
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
step s
step n
tell everyone hi
step s
step n
tell everyone hi
step s
step w
step ne
step s
step w
step ne
step s
step n
mem1 = set c
step s
step n
step s
step n
step sw
step e
step w
step ne
tell everyone hi
tell everyone hi
step s
step n
mem1 = set c
step s
step n
step s
step n
tell everyone hi
step s
step w
tell everyone hi
step e
step w
step e
step n
pickup w
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
step s
write 1
step nw
drop
step n
pickup s
else:
if mem2 == 8:
write 8
drop
pickup e
write 4
step e
drop
step nw
step s
pickup e
write 7
step e
drop
step nw
step e
pickup s
write 1
step s
drop
step n
mem1 = set myitem
pickup s
write 4
step s
drop
step e
step n
step w
pickup s
write 7
step s
drop
step w
step s
listenfor ready
mem1 = set c
pickup nw
step e
step e
step w
step ne
step s
else:
write 9
drop
if mem2 == 8:
step se
step e
pickup n
write 5
step n
drop
step e
step nw
pickup s
write 8
step s
drop
step mem2
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
pickup e
drop
pickup e
write 3
step e
drop
step nw
step s
pickup e
write 6
step e
drop
step w
step n
step e
pickup s
write 9
step s
drop
step e
pickup w
mem1 = set c
step s
step w
else:
if e != worker:
step ne
step ne
mem1 = calc w + w
mem1 = calc w + w
tell everyone hi
step s
mem1 = set myitem
mem1 = set myitem
mem1 = set myitem
pickup s
write 2
step e
step s
drop
step sw
step w
step nw
mem1 = calc w + [blank]
mem1 = calc w + [blank]
tell everyone hi
tell everyone ready
step n
else:
step n
listenfor ready
mem1 = set c
endif
pickup s
endif
endif
endif
endif
endif